package com.dwxt.community.dao;

import com.dwxt.community.entity.*;
import org.apache.ibatis.annotations.*;

import java.util.*;

public interface CommentMapper {
    int countByExample(CommentExample example);

    int deleteByExample(CommentExample example);

    int deleteByPrimaryKey(String id);

    int insert(Comment record);

    int insertSelective(Comment record);

    List<Comment> selectByExampleWithBLOBs(CommentExample example);

    List<Comment> selectByExample(CommentExample example);

    Comment selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Comment record, @Param("example") CommentExample example);

    int updateByExampleWithBLOBs(@Param("record") Comment record, @Param("example") CommentExample example);

    int updateByExample(@Param("record") Comment record, @Param("example") CommentExample example);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKeyWithBLOBs(Comment record);

    int updateByPrimaryKey(Comment record);

    List<Comment> sellectAll();

    List<Comment> selectByUserId(String userId);

    List<Comment> selectByInformationId(String informationId);

    List<Comment> search(@Param("content") String content, @Param("username") String username);

    int delByInformationId(@Param("informationId") String informationId);
}